home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3067 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  789 b 

  1. Path: aloha.cc.columbia.edu!peg14
  2. From: peg14@aloha.cc.columbia.edu (Paul E Gunnells)
  3. Newsgroups: comp.lang.c++
  4. Subject: C++ and lex?
  5. Date: 21 Jan 1996 23:01:45 GMT
  6. Organization: Columbia University
  7. Message-ID: <4dugkp$fl8@apakabar.cc.columbia.edu>
  8. NNTP-Posting-Host: aloha.cc.columbia.edu
  9.  
  10. Hello everyone:
  11.  
  12. Has anyone ever tried using lex along with iostream.h to handle input?
  13. Or better yet, is there some equivalent to lex that works well with
  14. C++?
  15.  
  16. Of course, one solution is to have an extern C function yylex() that
  17. just returns tokens that your C++ program deals with, but a better
  18. solution (at least a cleaner solution) would be a version of lex that
  19. allows you to directly incorporate C++ code (streams, constructors)
  20. into the lex source.
  21.  
  22. Is there such a beast?
  23.  
  24. Paul Gunnells
  25.  
  26.  
  27.